package com.night.student.mapper;

import com.night.common.entity.administration.CourseManager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Mr.Wang
 * @ClassName: LessonMapper
 * @Description: //TODO
 * @date: 2022/10/20-19:01
 */
public interface LessonMapper {
    //根据班级id查必修课程  //根据星期几查当天必修有哪些
    List<CourseManager> getCourseByCondition(int classId);
    //根据学生id查选修课程
    List<CourseManager> getCourseByStudentId(int studentId);
    //增加学生选修课的中间表
    void insert(@Param("studentId") int studentId,@Param("courseId") int courseId);
    //选中的课程人数-1
    int updateNum(int courseManagerId);
}
